package com.thd.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thd.framework.db.entity.BasicIdEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("thd_frameset_example")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="thd_frameset_example")
public class ThdFramesetExampleEntity extends BasicIdEntity<String> {
    @ApiModelProperty(value = "姓名")
    private String userName;
    @ApiModelProperty(value = "年龄")
    private Integer age;
    @ApiModelProperty(value = "总金额")
    private BigDecimal total;
    @ApiModelProperty(value = "出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;
    @ApiModelProperty(value = "登记时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date registTime;
}
